/**
 * 验证统一社会信用代码
 */

const validCreditCode = (param) => {
  const reg = /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/;
  if (reg.test(param)) {
    return true;
  } else {
    return false;
  }
};

export default validCreditCode;
